home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010306-20010921
/
000089_news@columbia.edu _Mon Apr 30 10:15:44 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2001-09-20
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA08046
for <kermit.misc@cpunix.cc.columbia.edu>; Mon, 30 Apr 2001 10:15:44 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id KAA29104
for kermit.misc@watsun.cc.columbia.edu; Mon, 30 Apr 2001 10:06:16 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: FTP delete after put ?
Date: 30 Apr 2001 14:06:15 GMT
Organization: Columbia University
Message-ID: <9cjrgn$sdd$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <Ah6H6.3803$ZH.425948@weber.videotron.net>,
Kevin McBrearty <kevin@atg.ca> wrote:
: I am using a here document to FTP files from a local server to a remote
: machine. I would like the script to delete the files from the local server
: once they have been transferred, but only if the transfer was successful. I
: don't see any way to do this with FTP. Can anyone suggest something ?
:
The new Kermit FTP client can do this:
http://www.columbia.edu/kermit/ftpclient.html
Example:
C-Kermit> ftp xyzcorp.com /user:myname
Password: xxxxx
[ Note: secure authentication methods are also available ]
C-Kermit> rcd somedirectory ; "rcd" = "remote cd"
C-Kermit> mput /delete *
C-Kermit> bye
The MPUT /DELETE command sends a file or group of files (text or binary,
it doesn't matter; Kermit switches automatically between text and binary
mode for each file), deleting each source file after, and if and only if,
it was uploaded successfully. For details see:
http://www.columbia.edu/kermit/ckermit3.html#x3
and in particular:
http://www.columbia.edu/kermit/ckermit3.html#x3.5.1
- Frank